package com.simblog.controller;

import java.util.Map;
import java.util.TreeMap;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.fastjson.JSONObject;
import com.simblog.common.ClientParameter;
import com.simblog.common.constants.Constants;
import com.simblog.common.utils.ClientParameterUtil;
import com.simblog.common.utils.TokenUtil;
import com.simblog.oaknt.domain.User;
import com.simblog.oaknt.service.ICategoryService;

@RequestMapping("v/category")
@Controller
public class CategoryController extends BaseController{
	private static Logger logger = LoggerFactory.getLogger(CategoryController.class);
	
	@Reference
	private ICategoryService categoryService;
	
	@ResponseBody
	@RequestMapping("query")
	public JSONObject list(String qryName,String token){
		logger.info("获取我的文章分类目录,qryName={}",qryName);
		Map<String, String> sortMap = new TreeMap<String, String>();
		try{
		
			return assemblyJson(null, Constants.RESP_SUCCESS, "成功");
		}catch (Exception e) {
			logger.error("获取我的文章分类目录异常");
			e.printStackTrace();
			return systemException();
		}
	}
	
	
}
